package com.design.strategy;

/**
 * @author leali
 * @title: ChildrenDiscount
 * @projectName design
 * @description: 儿童票折扣类：具体策略类
 * @date 2021/12/31 22:44
 */
public class ChildrenDiscount implements Discount {
    @Override
    public double calculate(double price) {
        System.out.println("儿童票");
        return price - 10;
    }
}
